<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>关注我的人</title>
<link href="/css/base.css" type="text/css" rel="stylesheet" />
<link href="/css/manage.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.default.js"></script>
<!--[if ie]><link href="/css/ie.css" type="text/css" rel="stylesheet"><![endif]-->
</head>

<body>
	<!-- head -->
   <?php $this->load->view('head');?>
    <!-- head--end-->
    <?php $data['curstyle'] = 'follow'?>
    <!-- body -->
    <div class="w100p mt40 mb20">
    	<div class="w903 mg">
        	<div class="box_s1">
            	<div class="b_head"></div>
                <div class="content m_pd_s1">
                	<!-- manage-top -->
                	<?php $this->load->view('member/mangtop',$data)?>
                    <!-- manage-top--end-->
                    
                    <!-- manage-det-->
                    <div class="clearfix">
                    	<div class="box_s3 fl">
                        	<div class="b_head"></div>
                            <div class="content m_slider_box">
                            	<ul class="m_slider_menu">
                                	<li class="current">
                                    	<a href="<?php echo site_url('member/tofans')?>">关注我的人</a>
                                    </li>
                                    <li>
                                    	<a href="<?php echo site_url('member/tofollow')?>">我关注的人</a>
                                    </li>
                                    <li>
                                    	<a href="<?php echo site_url('member/invite')?>">邀请好友加入</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="b_foot"></div>
                        </div>
                        
                        <!-- right-ope-->
                        <div class=" m_layout_s1">
                        	<div class="m_pd_s2">
                            	<div class="form_box">
                                	<h3><a href="javascript:;" class="def_btn_s2 fr delete" id="deleteGZ">删除</a>我关注的人</h3>
                                    <div class="form_data_box">
                                        <table class="form_list">
                                            <thead>
                                                <tr>
                                                    <th width="20"><i class="chb_s1 delete_all"></i></th><th width="180">用户</th><th>照片</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            	<?php foreach ($fansList as $fans):?>
                                            		 <tr>
	                                                    <td><i class="chb_s1 delete_item" dataid="member" datavalue="<?php echo $fans['member']?>"></i><input type="hidden" /></td><td><a href="#" class="gz_name"><?php echo $fans['username']?></a></td><td><img src="../../images/others/pic_26x26.png" class="pic block" /></td>
	                                                </tr>
                                            	<?php endforeach;?>
                                               
                                               


                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="btn_fy">
                                <?php echo $this->pagination->create_links()?>
                                </div>
                            </div>
                        </div>
                        <!-- right-ope--end-->
                        
                        <div class="clear"></div>
                    </div>
                    <!-- manage-det--end-->
                    
                </div>
                <div class="b_foot"></div>
            </div>
        </div>
    </div>
    
    <!-- body--end-->
    
    <!-- foot-->
   <?php $this->load->view('foot')?>
    <!-- foot--end-->	
</body>
<script type="text/javascript">
	$(function(){
		
		$("#deleteGZ").click(function(){
			if($(".delete_chb").size() < 1){
				alert("请选择要删除的人");
				return ;
			}
			if(confirm("你确定要移除粉丝吗？")){
				$(".delete_chb").each(function(){
					var obj = $(this);
					var member = $(this).attr("idatavalue");
					$.post("<?php echo site_url('member/delfans')?>",{
							member:member
						},function(data){
							var ret = $.parseJSON(data);
							if(ret.success=='true'){
							//	obj.parent().parent().remove();
								window.loaction.href='<?php echo site_url('member/tofans')?>';
							}else{
								alert(ret.msg);
							}
							
						});
					
				});
			}
		});
	})
</script>
</html>
